package com.smartEdu.mapper;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.smartEdu.model.UserModel;
import com.smartEdu.vo.UserInfoVo;

@Mapper
public interface UserMapper{
	public List<UserModel> getAllUser();
	public List<UserModel> getAllUserTeacher();
	public UserInfoVo getUserInfo(String loginname);
	/**
	 * 检查用户是否初次登录及账号和密码的有效性
	 * @return
	 */
	@Select("SELECT SID FROM param_stu WHERE SID=#{id} AND Password=#{passwd}")
	public String checkLoginAuth(@Param("id") String loginname,@Param("passwd") String passwd);
//    public UserModel getUser(UserModel user);
//    public void addUser(UserModel user);
//    public void updateUser(UserModel user);
//    public void deleteUser(int UserId);
}
